package com.jinxin.platform.cdqzsqacs.utils;

import java.util.Random;
import java.util.UUID;

public class Utils {

    public static String getUuid() {
        UUID uuid = UUID.randomUUID();
        return uuid.toString().replace("-", "");
    }

    /**
     * 获取位数为7位的随机数
     *
     * @return
     */
    public static String getRandom() {
        Random random = new Random();
        int nextInt = random.nextInt(9000000);
        nextInt = nextInt + 1000000;
        return nextInt + "";
    }

    public static String getRandom6() {
        Random random = new Random();
        int nextInt = random.nextInt(900000);
        nextInt = nextInt + 100000;
        return nextInt + "";
    }

}
